FROM nginx:1.23.0
RUN rm -rf /usr/share/nginx/html/*
COPY ./.docker/demo.conf /etc/nginx/conf.d/vuedemo.conf
COPY ./.docker/https.conf /etc/nginx/conf.d/https.conf
COPY ./src/dist /usr/share/nginx/html/demo

RUN chown -R nginx:nginx /usr/share/nginx/html/demo && \
    chmod -R 755 /usr/share/nginx/html/demo

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
LABEL authors="SongJuYi"
